package com.eudon.design_pattern.structural.proxy;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author eudon
 * @description 订单缓存
 * @date 2025/9/1
 * @email syd19970616@gmail.com
 * @address <a href="https://gitee.com/eudon">Gitee</a>
 */
public class OrderCache {
    private static final Map<Long, List<String>> CACHE = new ConcurrentHashMap<>();
    static {
        CACHE.put(1L, Arrays.asList("Order1", "Order2", "Order3"));
    }

    public static List<String> getCache(Long userId){
        return CACHE.get(userId);
    }
}
